<div class="tms-main-page-function">
    <div class="main-content">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
                <button class="layui-btn" ng-click="export()">导出</button>
                <a class="layui-btn" id="islExport" ng-href='{{excelUrl}}' ng-show="false"></a>
            </ul>
            <div class="wms-wbm-fun-right">
                <input type="text" placeholder="车架号-->回车查询" ng-model="search.vin"
                       ng-keydown="searchListKeyDown($event)" class="search-input">
                <button class="layui-btn" ng-click="moreClick()">更多</button>
                <i class="iconfont icon-shuaxin layui-anim layui-anim-loop layui-anim-rotate wms-refresh"
                   ng-click="refreshClick()" refresh></i>
            </div>
        </div>

        <div class="otherForm" style="width: 96%" ng-show="otherForm">
            <ul>
                <li>
                    <div class="otherFormItem">
                        <div>客户</div>
                        <div>
                            <ui-select ng-model="dropDownListDefault.customerList">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="customer in dropDownList.customerList">
                                    <span ng-bind="customer.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>车型</div>
                        <div>
                            <input class="layui-input" type="text" ng-model="search.vehicleSpecName"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>物料名称</div>
                        <div>
                            <input ng-model="search.materialName" class="layui-input" type="text"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>车架号</div>
                        <div>
                            <input class="layui-input" type="text" ng-model="search.vin"/>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="otherFormItem">
                        <div>入库确认时间</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd"
                                   ng-model="search.startTime" ng-click="Tools.modelAssignment($event,this)"
                                   autocomplete="off" class="layui-input"
                                   onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>至</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.endTime"
                                   ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input"
                                   onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                </li>
                <li>
                    <div class="otherFormItem otherFormItemButton">
                        <button class="layui-btn" ng-click="searchClick()">查询</button>
                        <button class="layui-btn" ng-click="resetClick()">重置</button>
                    </div>
                </li>
            </ul>
        </div>

        <div class="layui-form scrollTable">
            <table class="layui-table wms_wbm_inventory_select wms_wbm_main_table minScreen">
                <tbody>
                <tr>
                    <th>序号</th>
                    <th>货主</th>
                    <th>车架号(VIN号)</th>
                    <th>车型</th>
                    <th>物料代码</th>
                    <th>物料名称</th>
                    <th>颜色代码</th>
                    <th>颜色名称</th>
                    <th>入库日期</th>
                    <th>在库库龄</th>
                    <th>库存状态</th>
                    <th>库区</th>
                    <th>库位</th>
                    <th>仓库代码</th>
                    <th>仓库名称</th>
                    <!--<th>车型描述</th>-->
                </tr>
                <tr ng-repeat="inventoryRecord in inventoryRecordsList" ng-click="Tools.initTableClick($event)">
                    <td ng-bind="$index+1"></td>
                    <td ng-bind="inventoryRecord.wmsInventoryLocationDTOList[0].invlocCustomerName"></td>
                    <td ng-bind="inventoryRecord.wmsInventoryLocationDTOList[0].invlocVin"></td>
                    <td ng-bind="inventoryRecord.invVehicleSpecName"></td>

                    <td ng-bind="inventoryRecord.materialCode"></td>
                    <td ng-bind="inventoryRecord.materialName"></td>
                    <td ng-bind="inventoryRecord.colourCode"></td>
                    <td ng-bind="inventoryRecord.colourName"></td>

                    <td ng-bind="inventoryRecord.gmtCreate"></td>
                    <td ng-bind="inventoryRecord.warehouseAge"></td>
                    <td ng-bind="inventoryRecord.wmsInventoryLocationDTOList[0].status | inventoryStatusFilter"></td>
                    <td ng-bind="inventoryRecord.wmsInventoryLocationDTOList[0].invlocZoneName"></td>
                    <td ng-bind="inventoryRecord.wmsInventoryLocationDTOList[0].invlocLocCode"></td>
                    <td ng-bind="inventoryRecord.invWhCode"></td>
                    <td ng-bind="inventoryRecord.invWhName"></td>
                    <!--<td ng-bind="inventorySelect.invVehicleSpecDesc"></td>-->
                </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page" style="text-align: center;">
            <div id="pages" class="page">
            </div>
        </div>
    </div>
</div>